{#include file="header.html"#}

    <h3 class="title"><em>{#$pagetitle#}</em></h3>
    <div class="formbox">
        <form name="mform" method="post" action="{#$fileurl#}">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			{#if $option == 'basic'#}
			<tr>
				<th>网站名称：</th>
				<td><input name="cfg[site_name]" type="text" class="ipt" id="site_name" size="50" maxlength="50" value="{#$cfg.site_name#}" /></td>
			</tr>
			<tr>
				<th>网站标题：</th>
				<td><input name="cfg[site_title]" type="text" class="ipt" id="site_title" size="50" maxlength="255" value="{#$cfg.site_title#}" /></td>
			</tr>
			<tr>
				<th>网站地址：</th>
				<td><input name="cfg[site_url]" type="text" class="ipt" id="site_url" size="50" maxlength="255" value="{#$cfg.site_url#}" /><span class="tips">格式 http://www.35dir.com/</span></td>
			</tr>
			<tr>
				<th>安装目录：</th>
				<td><input name="cfg[site_root]" type="text" class="ipt" id="site_root" size="50" maxlength="255" value="{#$cfg.site_root#}" readonly /><span class="tips">系统自动获得正确的路径，仅需手工保存。</span></td>
			</tr>
			<tr>
				<th>站长邮件：</th>
				<td><input name="cfg[admin_email]" type="text" class="ipt" id="admin_email" size="50" maxlength="100" value="{#$cfg.admin_email#}" /><span class="tips">用来发送邮件的邮箱地址</span></td>
			</tr>
			<tr>
				<th valign="top">关 键 词：</th>
				<td><textarea name="cfg[site_keywords]" cols="50" rows="6" class="ipt" id="site_keywords">{#$cfg.site_keywords#}</textarea></td>
			</tr>
			<tr>
				<th valign="top">网站描述：</th>
				<td><textarea name="cfg[site_description]" cols="50" rows="6" class="ipt" id="site_description">{#$cfg.site_description#}</textarea></td>
			</tr>
			<tr>
				<th valign="top">页底版权：</th>
				<td><textarea name="cfg[site_copyright]" cols="50" rows="6" class="ipt" id="site_copyright">{#$cfg.site_copyright#}</textarea></td>
			</tr>
        	{#elseif $option == 'misc'#}
			<tr>
				<th>是否启用Gzip压缩功能：</th>
				<td><input name="cfg[is_gzip_open]" type="radio" id="is_gzip_open_y" value="yes"{#opt_checked($cfg.is_gzip_open, 'yes')#}><label for="is_gzip_open_y">开启</label>　<input name="cfg[is_gzip_open]" type="radio" id="is_gzip_open_n" value="no"{#opt_checked($cfg.is_gzip_open, 'no')#}><label for="is_gzip_open_n">关闭</label></td>
			</tr>
			<tr>
				<th>是否启用站点提交功能：</th>
				<td><input name="cfg[is_submit_open]" type="radio" id="is_submit_open_y" value="yes"{#opt_checked($cfg.is_submit_open, 'yes')#} onclick="$('#submit_reason').hide(); $('#submit_limit').show();"><label for="is_submit_open_y">开启</label>　<input name="cfg[is_submit_open]" type="radio" id="is_submit_open_n" value="no"{#opt_checked($cfg.is_submit_open, 'no')#} onclick="$('#submit_reason').show(); $('#submit_limit').hide();"><label for="is_submit_open_n">关闭</label></td>
			</tr>
			<tr id="submit_reason" style="display: {#opt_display($cfg.is_submit_open, 'no')#};">
				<th valign="top">关闭站点提交功能说明：</th>
				<td><textarea name="cfg[submit_close_reason]" cols="50" rows="6" class="ipt" id="submit_close_reason">{#$cfg.submit_close_reason#}</textarea></td>
			</tr>
 			<tr id="submit_limit" style="display: {#opt_display($cfg.is_submit_open, 'yes')#};">
				<th>每日站点提交上限设置：</th>
				<td><input name="cfg[submit_limit]" type="text" class="ipt" id="submit_limit" size="10" maxlength="10" value="{#$cfg.submit_limit#}" /> 个<span class="tips">0为不限制，大于0为所设置的数量</span></td>
			</tr>
			<tr>
				<th>是否开启链接检测功能：</th>
				<td><input name="cfg[is_linkcheck_open]" type="radio" id="is_linkcheck_open_y" value="yes"{#opt_checked($cfg.is_linkcheck_open, 'yes')#} onclick="$('#link_check').show();"><label for="is_linkcheck_open_y">开启</label>　<input name="cfg[is_linkcheck_open]" type="radio" id="is_linkcheck_open_n" value="no"{#opt_checked($cfg.is_linkcheck_open, 'no')#} onclick="$('#link_check').hide();"><label for="is_linkcheck_open_n">关闭</label></td>
			</tr>
            <tbody id="link_check" style="display: {#opt_display($cfg.is_linkcheck_open, 'yes')#};">
			<tr>
				<th>目标网站所链接的名称：</th>
				<td><input name="cfg[link_name]" type="text" class="ipt" id="link_name" size="50" maxlength="50" value="{#$cfg.link_name#}" /><span class="tips">要检查的链接名称</span></td>
			</tr>
			<tr>
				<th>目标网站所链接的地址：</th>
				<td><input name="cfg[link_url]" type="text" class="ipt" id="link_url" size="50" maxlength="50" value="{#$cfg.link_url#}" /><span class="tips">要检查的链接地址，只需输入域名</span></td>
			</tr>
            </tbody>
			<tr>
				<th>站点数据更新周期设置：</th>
				<td><input name="cfg[update_cycle]" type="text" class="ipt" id="update_cycle" size="10" maxlength="10" value="{#$cfg.update_cycle#}" /> 天<span class="tips">系统自动更新PR, SPR, Alexa</span></td>
			</tr>
            <tr>
            	<th>非法关键词过滤设置：</th>
                <td><textarea name="cfg[filter_words]" cols="50" rows="6" class="ipt" id="filter_words" onBlur="javascript:this.value=this.value.replace(/，/ig,',');">{#$cfg.filter_words#}</textarea><span class="tips">多个词之间用英文的“,”逗号隔开</span></td>
            </tr>
			<tr>
				<th>站点提交邮件通知提醒：</th>
				<td><input name="cfg[is_send_mail]" type="radio" id="is_send_mail_y" value="yes"{#opt_checked($cfg.is_send_mail, 'yes')#}><label for="is_send_mail_y">开启</label>　<input name="cfg[is_send_mail]" type="radio" id="is_send_mail_n" value="no"{#opt_checked($cfg.is_send_mail, 'no')#}><label for="is_send_mail_n">关闭</label><span class="tips">站点提交成功后将发送通知邮件</span></td>
			</tr>			
            {#elseif $option == 'cache'#}
			<tr>
				<th>是否启用缓存功能：</th>
				<td><input name="cfg[is_cache_open]" type="radio" id="is_cache_open_y" value="yes"{#opt_checked($cfg.is_cache_open, 'yes')#}><label for="is_cache_open_y">开启</label>　<input name="cfg[is_cache_open]" type="radio" id="is_cache_open_n" value="no"{#opt_checked($cfg.is_cache_open, 'no')#}><label for="is_cache_open_n">关闭</label><span class="tips">建议访问量大的时候开启</span></td>
			</tr>
        	<tr>
				<th>首页缓存时间：</th>
				<td><input name="cfg[cache_time_index]" type="text" class="ipt" id="cache_time_index" size="10" maxlength="10" value="{#$cfg.cache_time_index#}" /><span class="tips">小时，设为0时则不启用缓存</span></td>
			</tr>
        	<tr>
				<th>列表页缓存时间：</th>
				<td><input name="cfg[cache_time_list]" type="text" class="ipt" id="cache_time_list" size="10" maxlength="10" value="{#$cfg.cache_time_list#}" /><span class="tips">小时，设为0时则不启用缓存（最新收录、数据归档）</span></td>
			</tr>
        	<tr>
				<th>内容页缓存时间：</th>
				<td><input name="cfg[cache_time_info]" type="text" class="ipt" id="cache_time_info" size="10" maxlength="10" value="{#$cfg.cache_time_info#}" /><span class="tips">小时，设为0时则不启用缓存（网站详情）</span></td>
			</tr>
        	<tr>
				<th>其他页缓存时间：</th>
				<td><input name="cfg[cache_time_other]" type="text" class="ipt" id="cache_time_other" size="10" maxlength="10" value="{#$cfg.cache_time_other#}" /><span class="tips">小时，设为0时则不启用缓存（分类浏览、TOP排行榜、自定义页面）</span></td>
			</tr>
        	{#elseif $option == 'link'#}
            <tr>
            	<th>网站URL链接结构设置：</th>
                <td><input name="cfg[link_struct]" type="radio" id="link_struct_0" value="0"{#opt_checked($cfg.link_struct, 0)#}><label for="link_struct_0">默认 - http://www.domain.com/?mod=category</label><br /><input name="cfg[link_struct]" type="radio" id="link_struct_1" value="1"{#opt_checked($cfg.link_struct, 1)#}><label for="link_struct_1">文件型 - http://www.domain.com/category-1-2.html</label><br /><input name="cfg[link_struct]" type="radio" id="link_struct_2" value="2"{#opt_checked($cfg.link_struct, 2)#}><label for="link_struct_2">目录型 - http://www.domain.com/category/1-2/</label><br /><input name="cfg[link_struct]" type="radio" id="link_struct_3" value="3"{#opt_checked($cfg.link_struct, 3)#}><label for="link_struct_3">目录和文件型 - http://www.domain.com/category/1-2.html</label></td>
            </tr>
        	{#elseif $option == 'mail'#}
			<tr>
				<th>SMTP服务器地址：</th>
				<td><input name="cfg[smtp_host]" type="text" class="ipt" id="smtp_host" size="50" maxlength="50" value="{#$cfg.smtp_host#}" /><span class="tips">发送邮件的服务器地址，例smtp.126.com</span></td>
			</tr>
			<tr>
				<th>SMTP服务器端口：</th>
				<td><input name="cfg[smtp_port]" type="text" class="ipt" id="smtp_port" size="10" maxlength="10" value="{#$cfg.smtp_port#}" /><span class="tips">默认端口为25</span></td>
			</tr>
			<tr>
				<th>是否启用SMTP验证功能：</th>
				<td><input name="cfg[smtp_auth]" type="radio" id="smtp_auth1" value="yes"{#opt_checked($cfg.smtp_auth, 'yes')#}><label for="smtp_auth1">开启</label>　<input name="cfg[smtp_auth]" type="radio" id="smtp_auth0" value="no"{#opt_checked($cfg.smtp_auth, 'no')#}><label for="smtp_auth0">关闭</label><span class="tips">通常需要开启</span></td>
			</tr>
			<tr>
				<th>SMTP服务器帐号：</th>
				<td><input name="cfg[smtp_user]" type="text" class="ipt" id="smtp_user" size="30" maxlength="30" value="{#$cfg.smtp_user#}" /><span class="tips">登录邮件服务器的帐号</span></td>
			</tr>
			<tr>
				<th>SMTP服务器密码：</th>
				<td><input name="cfg[smtp_pass]" type="password" class="ipt" id="smtp_pass" size="30" maxlength="30" value="{#$cfg.smtp_pass#}" /><span class="tips">登录邮件服务器的密码</span></td>
			</tr>
        	{#/if#}
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="update">
					<input type="submit" class="btn" value="保 存">
				</td>
			</tr>
		</table>
		</form>
	</div>

{#include file="footer.html"#}